package com.example.offer.no0018;

import com.example.offer.no0018.impl.SolutionImpl;

/**
 * 解答测试-反转链表
 *
 * @author yumuhui
 */
public class SolutionTest {

    public static void main(String[] a1rgs) {

        int val = 5;

        ListNode node = new ListNode(4, new ListNode(5, new ListNode(1, new ListNode(9))));

        System.out.println("入参: node: " + ListNode.toStr(node));

        Solution solution = new SolutionImpl();

        ListNode listNode = solution.deleteNode(node, val);

        System.out.println("输出: " + ListNode.toStr(listNode));
    }
}
